package com.shushan.util;

import android.text.TextUtils;

/**
 * @ClassName: TMUitil
 * @Desciption: 脱敏工具类
 * @author: yichaohua
 * @date: 2018-09-17
 */
public class TMUitil {

    public static String TMMobile(String mobile){
        if(TextUtils.isEmpty(mobile) || mobile.length() < 7){
            return "";
        }

        StringBuilder mobileBuilder = new StringBuilder(mobile);
        return mobileBuilder.replace(3,7,"****").toString();

    }
}
